package com.jun.basic.listener;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * 应用启动监听器
 */
@Slf4j
@WebListener
public class ApplicationListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("ApplicationListener init");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("ApplicationListener destory");
    }
}
